package commons;

public final class Constants {

	// View, Controller
	public static final int CHARACTER_COMMENTS_LIMIT = 100;
	public static final int SEARCH_RESULTS_LIMIT = 100;

	// Model
	public static final int MODEL_FUNCTIONS_MAX_THREADS = 4;

	// Freebase connection
	public static final String FREEBASE_IMPORT_URL = "http://download.freebase.com/datadumps/latest/browse/fictional_universe/";
	public static final String FREEBASE_IMPORT_FILE_EXTENSION = ".tsv";
	public static final String FREEBASE_IMPORT_FILE_DELIMITER = "\t";
	public static final int FREEBASE_IMPORT_BULK_SIZE = 1000;
	public static final int FREEBASE_IMPORT_TIME_PERIOD_IN_DAYS = 7;
	public static final int FREEBASE_IMPORT_MAX_THREADS = 4;

	// DB connection
	public static String DB_USERNAME = "DbMysql03";
	public static String DB_PASSWORD = "LegenDate2011";
	public static String DB_URL = "jdbc:mysql://localhost:3305/DbMysql03"; // "jdbc:mysql://mysqlsrv.cs.tau.ac.il:3306/DbMysql03";

	public static void setDBUserName(String name) {
		DB_USERNAME = name;
	}

	public static void setDBPassword(String password) {
		DB_PASSWORD = password;
	}

	public static void setDBUrl(String url) {
		DB_URL = url;
	}
}
